﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class STowerCopyInfo extends IMessageBase
    {
        public var level:int;
        public var bossKills:Dictionary;
        public var totalSurplusSeconds:int;
        public var singleSurplusSeconds:int;
        public var result:Boolean;
        public const _type:int = 121;
        public static var _regist:STowerCopyInfo = new STowerCopyInfo(true);

        public function STowerCopyInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new STowerCopyInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.level);
            DicBossKillInfosHelper.write(param1, this.bossKills);
            param1.writeInt(this.totalSurplusSeconds);
            param1.writeInt(this.singleSurplusSeconds);
            param1.writeBool(this.result);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.level = param1.readInt();
            this.bossKills = DicBossKillInfosHelper.read(param1);
            this.totalSurplusSeconds = param1.readInt();
            this.singleSurplusSeconds = param1.readInt();
            this.result = param1.readBool();
            return;
        }// end function

    }
}
